package com.example.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@ApiModel("赛事实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Event {

    @ApiModelProperty("赛事id,主键自增，不用给值")
    int eventID;
    @ApiModelProperty("用户id")
    int userID;
    @ApiModelProperty("赛事名称")
    String eventName;
    @ApiModelProperty("比赛的开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime startTime;
    @ApiModelProperty("比赛的预计结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime endTime;
    @ApiModelProperty("最低档次的座位对应的票价")
    private Float lowPrice;
    @ApiModelProperty("中间档次的座位对应的票价")
    private Float midPrice;
    @ApiModelProperty("内场票价")
    private Float highPrice;
    @ApiModelProperty("比赛的海报")
    private String image;
    @ApiModelProperty("比赛的描述")
    private String eventDescr;
    @ApiModelProperty("比赛的地点 1-1号场馆，2-2号场馆")
    private Short place;
    @ApiModelProperty("是否起售 1-起售，2-停售，3-表示该赛事被删除")
    private Short onSale;
    @ApiModelProperty("比赛信息最开始在网上登记的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime createTime; //创建时间
    @ApiModelProperty("比赛信息最后修改的时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime updateTime; //修改时间


}
